<template>
  <common-wrap id="detail" title="详情" @toggle="toggle">
    <div v-if="detail">
      <el-row>
        <el-col :span="8" class="detail-info-item">
          <div class="detail-info__label">状态</div>
          <div class="detail-info__content">
            <svg-icon icon-class="submit-wait" :style="{ color: detail.statusObj?.color }" />
            {{ detail.statusObj?.value }}
          </div>
        </el-col>
        <el-col :span="8" class="detail-info-item">
          <div class="detail-info__label">优先级</div>
          <div class="detail-info__content">{{ detail.priorityValue }}</div>
        </el-col>
        <el-col :span="8" class="detail-info-item">
          <div class="detail-info__label">类型</div>
          <div class="detail-info__content">{{ detail.typeVlaue }}</div>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="8" class="detail-info-item">
          <div class="detail-info__label">受试者</div>
          <div class="detail-info__content">{{ detail.sic }}</div>
        </el-col>
        <el-col :span="8" class="detail-info-item">
          <div class="detail-info__label">访视</div>
          <div class="detail-info__content">{{ detail.name }}</div>
        </el-col>
        <el-col :span="8" class="detail-info-item">
          <div class="detail-info__label">Point</div>
          <div class="detail-info__content">{{ detail.pointValue }}</div>
        </el-col>
      </el-row>
      <el-row>
        <el-col class="detail-info-item">
          <div class="detail-info__label">备注</div>
          <div class="detail-info__content">{{ detail.remark }}</div>
        </el-col>
      </el-row>
    </div>

    <el-row class="detail-box">
      <el-col :span="6">
        <div class></div>
      </el-col>
    </el-row>
  </common-wrap>
</template>

<script lang="ts" setup>
import { defineEmits, defineProps } from 'vue'

import CommonWrap from '@/components/CommonWrap/index.vue'

defineProps({
  detail: {
    type: Object,
    default: () => {},
  },
})
const emits = defineEmits(['toggle'])
const toggle = (show: boolean) => {
  emits('toggle', show)
}
</script>
